package com.anmingle.pswb.config;

import cn.dev33.satoken.jwt.StpLogicJwtForSimple;
import cn.dev33.satoken.stp.StpLogic;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 *
 * @author 安明乐
 */
@AutoConfiguration
public class SaTokenConfigure {
    // Sa-Token 整合 jwt (Simple 简单模式)

    @Bean
    public StpLogic getStpLogicJwt() {
        System.out.println("注册组件------------SaTokenConfigure成功");
        return new StpLogicJwtForSimple();
    }
}
